#ifndef _DevicesRTC_H_
#define _DevicesRTC_H_


void vRtcInit(void);

/* 时间戳数据读、写 */
void vRtcTimestampSet(uint32_t uiTimestamp);
uint32_t uiRtcTimestampGet(void);

int8_t cRtcTimeSet(TimeType *ptypeTime);
int8_t cRtcTimeGet(TimeType *ptypeTime);

/* 闹钟设置 */
void vRtcAlarmSet(uint32_t uiTimestamp);

/* 时区数据读、写 */
void vRtcUTCSet(int8_t cUTC);
int8_t cRtcUTCGet(void);

/* BKP区域数据读、写 */
int8_t cRtcBkpWrite(int8_t cChannel, uint8_t ucValue);
uint8_t ucRtcBkpRead(int8_t cChannel);
int8_t cRtcBkpSave(void);
int8_t cRtcBkpCheck(void);


#endif
